此类表示3D PDF上下文。在使用此模块中的任何类或方法之前,请确保 Foxit PDF SDK已通过FoxitPDFSDKPython2.Library.Initialize 函数使用包含"3D"模块的密钥 成功初始化。
目前,3D模块仅支持Windows。
- 参见
- FoxitPDFSDKPython2.Library
◆ PDF3DContext()
| def FoxitPDFSDKPython2.PDF3DContext.PDF3DContext |
( |
|
other | ) |
|
◆ Add3DAnnot()
| def FoxitPDFSDKPython2.PDF3DContext.Add3DAnnot |
( |
|
threeD_file_path, |
|
|
|
page_index, |
|
|
|
rectf, |
|
|
|
screen_canvas_parent, |
|
|
|
launch_setting, |
|
|
|
advanced_setting |
|
) |
| |
向PDF页面添加3D注释。
- 参数
-
| [in] | threeD_file_path | 3D文件的文件路径。目前支持u3d和prc格式。 |
| [in] | page_index | 要添加3D注释的页面索引。有效范围:从0到(page_count-1)。 |
| [in] | rectf | [PDF坐标系统]中新3D注释的矩形区域。 |
| [in] | screen_canvas_parent | 屏幕画布的父窗口句柄。 |
| [in] | launch_setting | 3D启动设置。 |
| [in] | advanced_setting | 3D高级设置。 |
- 返回
- 添加的3D注释对象。
- 参数
-
| [in] | threeD_file_read | 3D文件的文件读取器回调。目前支持u3d和prc格式。 详情请参考 FoxitPDFSDKPython2.FileReaderCallback 。 |
| [in] | page_index | 要添加3D注释的页面索引。有效范围:从0到(page_count-1)。 |
| [in] | rectf | [PDF坐标系统]中新3D注释的矩形区域。 |
| [in] | screen_canvas_parent | 屏幕画布的父窗口句柄。 |
| [in] | launch_setting | 3D启动设置。 |
| [in] | advanced_setting | 3D高级设置。 |
- 返回
- 添加的3D注释对象。
◆ GetPage3DAnnotArray()
| def FoxitPDFSDKPython2.PDF3DContext.GetPage3DAnnotArray |
( |
|
page_index | ) |
|
根据页面索引获取3D注释实例对象数组。
- 参数
-
- 返回
- 3D注释实例对象数组。
◆ Invalidate()
| def FoxitPDFSDKPython2.PDF3DContext.Invalidate |
( |
| ) |
|
刷新3D对象。
要动态显示3D效果,需要基于循环调用修改接口。
- 返回
- 无。
◆ IsEmpty()
| def FoxitPDFSDKPython2.PDF3DContext.IsEmpty |
( |
| ) |
|
检查当前对象是否为空。
当当前对象为空时,意味着当前对象无用。
- 返回
- true表示当前对象为空,false表示不为空。